class Position {
  constructor(public x: number, public y: number) {}

  // 判断两个位置是否相等
  isEqual(other: Position): boolean {
    return this.x === other.x && this.y === other.y
  }
}

export default Position
